import request from "@/axios";
export function getImageList(page = 1, limit = 10) {
  return request.get("/admin/image_class/" + page, {
    limit,
  });
};
export function getImage(id, page = 1, limit = 10) {
  return request.get("/admin/image_class/" + id + "/image/" + page, {
    limit,
  });
};
export function addImageClass(name='相册4',order=50) {
  return request.post("/admin/image_class", {
    name,
    order
  });
};
export function editImageClass(id=178,name="相册1修改",order=50) {
  return request.post("/admin/image_class/" + id, {
    name,
    order
  });
};
export function removeImageClass(id) {
  return request.post("/admin/image_class/"+id+"/delete");
};

